import { axios } from '@/utils/request'
import {
  servers
} from '@/api/servers'
const serverName = servers.cms;
const api = {
  page: serverName+'/resource/page',
	deleteFile: serverName+'/upload/deleteFile'
}
export default api

export function page (parameter) {
  return axios({
    url: api.page,
    method: 'post',
		headers: {
		  'Content-Type': 'application/json;charset=UTF-8'
		},
    data: parameter
  })
}

export function deleteFile(parameter) {
  return axios({
    url: api.deleteFile,
    method: 'delete',
    params: parameter
  })
}


